package com.example.book.controller;


import com.example.book.dao.TUserMapper;
import com.example.book.transactiontest.CommonThread;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MapperController {

    @Resource
    private TUserMapper mapper;

    @Resource
    private CommonThread commonThread;


    @RequestMapping("/aaa")
    public String aaa() {
//        new Thread(()->{
//            commonThread.doTask1();
//        }).start();

//        commonThread.doTask2();

        commonThread.doTask3();

        return "a1";
    }
}
